package com.ryzx.common.feign;

import com.ryzx.common.feign.config.FeignConfig;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.context.annotation.Lazy;
import org.springframework.web.bind.annotation.GetMapping;

@Lazy
@FeignClient(value = "IdGenerator",configuration = FeignConfig.class)
public interface IDGeneratorFeign {
    @GetMapping("IDGenerator/nextId")
    long nextId();
}
